var j_str = {"result":
[{
    "id":1,
    "question":"今天是礼拜几？",
    "actions":[
        {
           "actionid":2,
            "answer":"礼拜1",
            "final":-1
        },
        {
           "actionid":3,
            "answer":"礼拜2",
            "final":-1
        }
    ]
}
 ,
{
    "id":2,
    "question":"你喜欢什么颜色？",
    "actions":[
        {
           "actionid":-1,
            "answer":"红色",
            "final":1
        },
        {
           "actionid":-1,
            "answer":"黄色",
            "final":3
        }
    ]
},
        {
    "id":3,
    "question":"你过的愉快吗？",
    "actions":[
        {
           "actionid":-1,
            "answer":"恩",
            "final":2
        },
        {
           "actionid":-1,
            "answer":"不是很好",
            "final":4
        }
    ]
}
]
};
var tpl1 =
	'	<div class="timu-content">'+
		'	<span class="a-num">题目一:</span>'+
	'<p class="a-content" >{{question}}</p>'+
'	</div>'+
       ' <ul class="q-list">'+
	    '{{# each actions as item}}' +
        '    <li>'+
		'	<div class="unselect"></div><a >{{item.answer}}</a>'+
        '    </li>'+
		'{{/each}}';

//当前的题目号
var current_num = 2;
//判断是否是末尾题号
var obj = j_str;

//页面初始化
function inits(){
	var S = KISSY,D = S.DOM;
	S.use("template",function(S,Template){
	D.html(S.one('#J_content_t'), (Template(tpl1).render(obj.result[current_num])));
	})
}
inits();

